<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="../js/vue2.js"></script>
</head>
<body>
    <div id="app">
        <!-- <button v-on:click="dianwoa">点我啊</button> -->
        <!-- <button v-on:click="dianwoa('jack',$event)">带参事件</button> -->
        <!-- <a href="http://baidu.com" v-on:click.prevent.stop='dianwoa'>点我啊</a>  阻止跳转 -->
        用户名：<input type="text" name="0" id=""> <br>
        密码：<input type="text" name="" id=""><br> 
        <input type="button" name="" id="" value="提交" @click="login">

    </div>
</body>
<script>
    var ms=  new Vue({
        el:"#app",
        data:{

        },
        methods:{
            login(){
                alert("提交成功")
            },
            dianwoa(e,a){
                alert('ok');
                console.log(e,a)
                
            }
        }
    })
</script>
</html>